package com.example.yifei.ui.page.main.purchase.tab

import androidx.compose.runtime.getValue
import androidx.compose.runtime.mutableStateOf
import androidx.compose.runtime.setValue
import androidx.lifecycle.ViewModel
import com.example.yifei.data.http.HttpService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

/**
 * @Author: ZhuDaiHao
 * @Date: 2022/5/14
 * @Describe: 采购列表详情VM
 */
@HiltViewModel
class PurchaseDetailsViewModel @Inject constructor(private var service: HttpService) : ViewModel() {
    var list by mutableStateOf(ArrayList<MessageBean>())

    init {
        list.add(MessageBean())
        list.add(MessageBean())
        list.add(MessageBean())
    }

}


data class MessageBean(
    val code: String = "面料色号：001#",
    val company: String = "单位：米",
    val number: String = "数量：300",
    val price: String = "单价：3",
    val money: String = "金额：6000",
)